package org.lds.logger.config.appender;

import org.lds.logger.config.filter.AbstractAppenderFilter;
import org.lds.logger.config.layout.Layout;
import org.lds.logger.event.LoggerEvent;

import java.util.List;

public interface Appender {
    String getName();
    /**
     * 目的地
     */
    String getDestination();
    int getPriority();
    AbstractAppenderFilter getAppenderFilter();
    Layout getLayout();

    void append(LoggerEvent loggerEvent);
    void append(List<LoggerEvent> loggerEvents);
}
